package com.wit.zhenghao.day09;

import java.util.ArrayList;
import java.util.List;

//OutOfMemoryError  
//StackOverflowError
public class Error {

	private  static int  count = 0;
	public static void main(String[] args) {
//		List<String> list = new ArrayList<String>();
//		
//		for(int i = 1; i < 1000;i++) {
//			String s = new String(new char[1024 * 1024]);
//		list.add(s);
//		}
		foo();
	}
	public static void foo() { 
		count++;
		System.out.println(count);
		foo();
	}
}
